<?php
declare(strict_types=1);

namespace App\Wxc\Request\SharerMp\V1;

use Deepwell\Data\Attributes\Validation\Between;
use Deepwell\Data\Attributes\Validation\Required;
use Deepwell\Data\Attributes\Validation\Size;
use Deepwell\Data\Attributes\Validation\Url;
use Deepwell\Data\Data;

class PostSharerFormRequest extends Data
{
    #[Required]
    public int $shop_id;

    /**
     * 微信号
     */
    #[Required, Between(6, 20)]
    public string $wechat_account;

    /**
     * 申请人手机号
     */
    #[Required, Size(11)]
    public string $mobile_number;

    /**
     * 昵称
     */
    #[Required, Between(1, 20)]
    public string $nickname;

    /**
     * 头像url
     */
    #[Required, Url]
    public string $avatar;

    public static function attributes(): array
    {
        return [
            'shop_id' => '小店id',
            'wechat_account' => '微信号',
            'mobile_number' => '手机号',
            'nickname' => '昵称',
            'avatar' => '头像url',
        ];
    }
}